<template>
  <div class="site-intaller">
    <video v-if="src"  class="video-bg" playsinline="true" webkit-playsinline="true" x5-playsinline="true" x5-video-player-type="h5" x5-video-orientation="h5"  x5-video-player-fullscreen="true" width="100%" controls>
      <source :src="src" type="video/ogg">
      <source :src="src" type="video/mp4">
    </video>
  </div>
</template>
<script>
export default {
  name: 'association',
  data () {
    return {
      src: ''
    }
  },
  components: {
  },
  computed: {
  },
  created () {
    this.queryBimVideo()
  },
  methods: {
    queryBimVideo () {
      this.$http.queryUploadObjs({}, 'YUNZHIBO').then(res => {
        if (res.data && res.data.length) {
          this.src = `${process.env.VUE_APP_SRC}${res.data[0].down_url}`
        }
      })
    }
  }
}
</script>
<style lang="scss">
</style>
